FROM openjdk:8-jre-slim

ENV PARAMS=""

ENV TZ=PRC

ENV JAVA_OPTS="-Xms10m -Xmx512m -Djava.security.egd=file:/dev/./urandom "

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

VOLUME /tmp
ADD target/WebSSH.jar app.jar

ENTRYPOINT ["sh","-c","java $JAVA_OPTS $PARAMS -jar /app.jar "]
